﻿<UserControl x:Class="SharePointCSVImporter.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
     d:DesignWidth="700" Height="150">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="5" />
            <RowDefinition  />
            <RowDefinition  />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="100" />
            <ColumnDefinition  />
            <ColumnDefinition  />
        </Grid.ColumnDefinitions>
            <TextBox Name="FileText" Height="35" Margin="0,5,0,5" HorizontalContentAlignment="Right"  HorizontalAlignment="Right" MinWidth="150" VerticalContentAlignment="Center" ></TextBox>
        <TextBlock Name="UploadStatus" HorizontalAlignment="Right" Grid.Row="2" Grid.ColumnSpan="2"></TextBlock>
      
            <Button Name="SelectFileButton" Margin="5,0,0,0"  Grid.Column="1"  Content="Step 1: Select Data File" Height="40" Click="SelectFileButton_Click" />
            <Button Name="UploadButton" IsEnabled="False"  Margin="5,0,0,0"  Grid.Column="2" Grid.Row="2"  Content="Step 3: Import Data"  Height="40" Click="UploadButton_Click" />

            <Button Name="ConfigureButton" IsEnabled="False" Grid.Column="2" Margin="5,0,0,0" Content="Step 2: Configure/Review Field Mapping" Height="40" Click="ConfigureButton_Click" />
        <StackPanel Name="ProgressPanel" Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" Visibility="Collapsed">
            <TextBlock MinWidth="240" Margin="10" Name="ProgressMessageTextBlock"></TextBlock>
            <ProgressBar Width="200" Height="25" Name="SatusProgressBar"  >
                <ProgressBar.Effect>
                    
                    <DropShadowEffect Color="LightCoral" BlurRadius="15" />
                </ProgressBar.Effect>
            </ProgressBar>
           
        </StackPanel>
      
            <StackPanel Name="ResultStackPanel" Grid.Row="3" Grid.ColumnSpan="3"  Orientation="Horizontal" Margin="20,1,10,1" Visibility="Collapsed"  >
            <ScrollViewer MaxHeight="50" >
                <TextBlock Name="ProcessCompleteResultTextBlock" Text="Result" VerticalAlignment="Center" ></TextBlock>
            </ScrollViewer>
            <Button Name="DownloadErrorReportButton" Click="DownloadErrorReport_Click" Content="Download Error Report" Margin="10,0,0,0" Visibility="Collapsed" />
            </StackPanel>
     

    </Grid>
</UserControl>
